﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DormMS.Model;
using DormMS.Model.SearchModels;
using DormMS.Model.ViewModels;

namespace DormMS.IService
{
    public interface IBuildingService
    {
        List<V_UserInfo> GetV_UserInfo(string name);
        List<Building> GetBuildingList(BuildingSearchModel search, ref int total);
        List<Building> GetBuildingInfoList(string where);

        List<Building> GetBuildingAllList();

        Building GetBuildingInfoById(int id);
        Building GetBuildingInfoByNO(string NO);

        int BuildingAdd(Building model);

        int BuildingEdit(Building model);

        int BuildingDel(Building model);

    }
}
